package com.yx.learn.dao;

import java.util.List;

import com.yx.learn.domain.Position;

public interface PositionDao {

	public void save(Position position)throws Exception;

	public void delete(Position position)throws Exception;

	public void update(Position position)throws Exception;

	public List<Position> findAll()throws Exception;

	public List<Position> findPositions(String hql, int pageNumber, int pageSize)throws Exception;
	
	public Position findById(int id)throws Exception;

}
